import java.util.*;

/**
 * Created by ASUS on 2018/5/29
 *
 * @Authod Grey Wolf
 */
public class Test1 {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);

        Set<String> stringSet=new HashSet<String>();
        while (scanner.hasNext()){
            stringSet.add(scanner.next());
        }
        System.out.println("需要的材料有："+stringSet+"共"+stringSet.size()+"种");
    }


}

  


